﻿# 获取当前的项目名称
function(GetProTargetName outVar)
    # 以库文件形式引入，返回当前模块项目名，否则返回最顶层CMake文件项目名
    if(LEPF_BUILD_LIBRARY)
        set(${outVar} ${PROJECT_NAME})
        # message("PROJECT_NAME ${PROJECT_NAME}")
    else()
        set(${outVar} ${CMAKE_PROJECT_NAME})
        # message("CMAKE_PROJECT_NAME ${CMAKE_PROJECT_NAME}")
    endif()
    return(PROPAGATE ${outVar})
endfunction(GetProTargetName)


